|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnegotiator.boaframework.OfferingStrategy
negotiator.boaframework.offeringstrategy.anac2011.TheNegotiator_Offering
public class TheNegotiator_Offering
This is the decoupled Offering Strategy for TheNegotiator (ANAC2011). The code was taken from the ANAC2011 TheNegotiator and adapted to work within the BOA framework. Adapted to be compatible with an opponent model. DEFAULT OM: None
| Field Summary |
|---|
| Fields inherited from class negotiator.boaframework.OfferingStrategy |
|---|
endNegotiation, helper, negotiationSession, nextBid, omStrategy, opponentModel |
| Constructor Summary | |
|---|---|
TheNegotiator_Offering()
Empty constructor for the BOA framework. |
|
| Method Summary | |
|---|---|
BidDetails |
determineNextBid()
Determine the next bid. |
BidDetails |
determineOffer(int phase,
double threshold)
Determine what (counter)offer should be made in a given phase with a minimum threshold. |
BidDetails |
determineOpeningBid()
Determines the first bid to be offered by the agent |
Bid |
getBestPartnerBids(double threshold)
Get a partner bid which has a utility of at least a certain value. |
Bid |
getOwnBidBetween(double lowerThres,
double upperThres)
|
Bid |
getOwnBidBetween(double lowerThres,
double upperThres,
int counter)
Get a random bid between two given thresholds. |
double |
getUpperThreshold(double threshold,
double percentage)
Calculate the upperthreshold based on the lowerthreshold and a given percentage. |
void |
init(NegotiationSession negoSession,
OpponentModel model,
OMStrategy oms,
java.util.HashMap<java.lang.String,java.lang.Double> parameters)
Init required for the Decoupled Framework. |
| Methods inherited from class negotiator.boaframework.OfferingStrategy |
|---|
endSession, getHelper, getNextBid, isEndNegotiation, loadData, setNextBid, storeData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TheNegotiator_Offering()
| Method Detail |
|---|
public void init(NegotiationSession negoSession,
OpponentModel model,
OMStrategy oms,
java.util.HashMap<java.lang.String,java.lang.Double> parameters)
throws java.lang.Exception
init in class OfferingStrategynegoSession - state of the negotiation.model - opponent model which may be used.oms - opponent model strategy which may be used.parameters - optional parameters for the offering strategy.
java.lang.Exception - if the offering strategy fails to initialize.public BidDetails determineNextBid()
determineNextBid in class OfferingStrategy
public BidDetails determineOffer(int phase,
double threshold)
agentID - of our agentphase - of the negotationthreshold - minimum threshold
public double getUpperThreshold(double threshold,
double percentage)
threshold - percentage -
public Bid getOwnBidBetween(double lowerThres,
double upperThres)
public Bid getOwnBidBetween(double lowerThres,
double upperThres,
int counter)
lowerThres - lowerbound thresholdupperThres - upperbound threshold
public Bid getBestPartnerBids(double threshold)
threshold -
public BidDetails determineOpeningBid()
OfferingStrategy
determineOpeningBid in class OfferingStrategy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||